package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 群消息表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("group_messages")
public class GroupMessages implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 群组ID
     */
    @TableField("group_id")
    private Integer groupId;

    /**
     * 发送者ID
     */
    @TableField("sender_id")
    private Integer senderId;

    /**
     * 消息内容
     */
    @TableField("content")
    private String content;

    /**
     * 发表时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
